/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package basico.b05;

/**
 *
 * @author Helberth
 */
public class LacoParaVetor {
    
    public static void main(String[] args) {
        
        int vetor[] = new int[30];
        
        // preenche o vetor
        for (int i = 0; i < vetor.length; i++) {
            vetor[i] = i+1;
        }
        
        // exibe os valores do vetor
        for (int i = 0; i < vetor.length; i++) {
            System.out.println("Vetor["+i+"]:"+vetor[i]);
        }
    }
    
}

